RedirectResponseCodeReceived

public interface RedirectResponseCodeReceived implements NetworkEvent

An event indicating that a redirect response code (3xx) has been received for the URL request.

Functions

Link copied to clipboard
public Network network()
Returns the Network instance initiated this event.
Link copied to clipboard
public String newUrl()
Returns a string that represents the new location of the redirected URL request.
Link copied to clipboard
public int responseCode()
Returns the HTTP response code (e.g., 300, 301, and so on).
Link copied to clipboard
Returns the URL request that has been redirected.